<template>
    <swiper class="swiper" :indicator-active-color="indicatorActiveColor" :indicator-dots="indicatorDots" :autoplay="autoplay" :interval="interval" :duration="duration">
        <block v-for="(item, index) in images" :key="index">
            <swiper-item @click="clickSwiper(item.url)">
                <image :src="item.url" class="slide-image" mode="aspectFill"/>
            </swiper-item>
        </block>
    </swiper> 
</template>

<script>
export default {
  props: {
    images: {
      type: Array
    }
  },
  data() {
    return {
      indicatorActiveColor:"#ffffff",
      indicatorDots: true,
      autoplay: true,
      interval: 3000,
      duration: 500,
    };
  },
  methods:{
      clickSwiper(id){
        console.log(id)
      }
  }
};
</script>

<style scoped>
.swiper {
    height: 125px !important;
}
image {
  height: 100%;
  width: 100%;
}
</style>